    <style>
.search_form .layui-inline{padding-left:0px;}
.layui-form-label{line-height:25px;}
.search_form .layui-form-label{padding:5px 5px 0 5px;}
</style>
<div class="search-box">
	<form class="search_form layui-form" lay-filter="feizhi_search_form">
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">订单类型</label>
			<div class="layui-input-inline">
				<select name="order_type" lay-filter="order_type" id="order_type">
				    	<option value="">全部</option>
    					<option value="1">自然订单</option>
						<option value="2">报备订单</option>
						<option value="3">其他</option>
						<option value="4">改供货商</option>
						<option value="5">退货</option>
						<option value="6">竞价订单</option>
						<option value="7">废止订单</option>
				</select>
			</div>
		</div>
		<div class="layui-inline" style="display: none;">
			<label class="layui-form-label layui-bg-blue">地区</label>
			<div class="layui-input-inline">
				<input type="text" name="api_param" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">金额</label>
			<div class="layui-input-inline">
				<input type="text" name="min_order_money" autocomplete="off" class="layui-input" placeholder="最低金额">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="max_order_money" autocomplete="off" class="layui-input" placeholder="最高金额">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">订单号</label>
			<div class="layui-input-inline">
				<input type="text" name="order_no" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">军采单号</label>
			<div class="layui-input-inline">
				<input type="text" name="out_order_no" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">下单日期</label>
			<div class="layui-input-inline">
				<input type="text" name="order_form_create_time_start" autocomplete="off" class="layui-input" placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="order_form_create_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">废止日志</label>
			<div class="layui-input-inline">
				<input type="text" name="push_supplier_time_start" autocomplete="off" class="layui-input" placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="push_supplier_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
			</div>
		</div>
		<div class="layui-inline">
			<div class="layui-input-inline">
				<button type="button" id="order_feizhi_search_btn" class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red">搜  索</button>
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="feizhi_list" lay-filter="feizhi_list"></table>
<script>
	var order_list_url = "{:url('order/ajaxList')}";
	var order_delete_url = "{:url('order/ajaxDelete')}";
	var order_one_url = "{:url('order/ajaxOneData')}";
	var order_save_url = "{:url('order/saveData')}";
	var feizhi_cols = {$feizhi_col};
	var order_detail_url = "{:url('order/detail')}";
	var order_export_url = "{:url('order/exportOrder')}";
	var option_log_url = "{:url('order/optionLog')}";
	$.getScript('/static/js/order/feizhi.js');
</script>
<script type="text/html" id="orderFeizhiToolbar">
	<div class="layui-btn-container">
		<a type="button" data-title="导出本次查询订单" data-url="{:url('order/exportGhs')}" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportAllOrderFeizhi"><i class="layui-icon layui-icon-spread-left"></i>导出本次查询订单</a>
	</div>
</script>
<script type="text/html" id="order_tool">
	<div class="layui-btn-group">
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="option_log" data-title="操作日志"><i class="layui-icon layui-icon-log"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>
<script type="text/html" id="member_infoTpl">
	{{# return d.member_info['username']; if(d.member_info['realname'] == ''){ return d.member_info['username']; } else { return d.member_info['realname']; } }}
</script>
<script type="text/html" id="order_stateTpl">
	{{# var text = ''; switch(d.order_state){ case 1: text = '<span style="color: #FF5722;">待确认</span>'; break; case 2: text = '<span style="color: #FFB800;">等待发货</span>'; break; case 3: text = '<span style="color: #01AAED;">等待收货</span>'; break; case 4: text = '<span style="color: #2F4056;">已收货</span>'; break; case 5: text = '<span style="color: #009688;">订单完成</span>'; break; case -1: text = '<span style="color: #c2c2c2;">已取消</span>'; break; default: text = '错误'; break; } return text; }}
</script>
<script type="text/html" id="pay_typeTpl">
	{{# switch (d.pay_type){ case 1: return '<span style="color: #FF5722;">货到付款</span>'; break; case 2: return '<span style="color: #FFB800;">在线支付</span>'; break; case 3: return '<span style="color: #01AAED;">账期支付</span>'; break; case 4: return '<span style="color: #2F4056;">银行转账</span>'; break; default: break; } }}
</script>
<script type="text/html" id="pay_stateTpl">
	{{# if(d.pay_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-green" data-title="已支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="is_invoiceTpl">
	{{# switch (d.is_invoice){ case 1: return '<span style="color: #FF5722;">不开票</span>'; break; case 2: return '<span style="color: #FFB800;">独立开票</span>'; break; case 3: return '<span style="color: #01AAED;">统一开票</span>'; break; default: break; } }}
</script>
<script type="text/html" id="invoice_stateTpl">
 {{# if(d.invoice_proof == 1){}}
 <div class="layui-anim circle layui-bg-green" data-title="已开票">
  <i class="layui-icon layui-icon-radio"></i>
 </div>
 {{# } else {}}
 <div class="layui-anim circle layui-bg-red" data-title="未开票">
  <i class="layui-icon layui-icon-radio"></i>
 </div>
 {{# }}}
</script>
<script type="text/html" id="supplier_stateTpl">
	{{# if(d.supplier_state == 2){}}
	<div class="layui-anim circle layui-bg-black" data-title="未指派">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.supplier_state == 1){ }}
	<div class="layui-anim circle layui-bg-green" data-title="已确认">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未确认">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="shopping_stateTpl">
	{{# if(d.shopping_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shopping_state == 2){ }}
	<div class="layui-anim circle layui-bg-green" data-title="已配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-black" data-title="部分配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="receipt_stateTpl">
	{{# if(d.receipt_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.receipt_state == 2){ }}
	<div class="layui-anim circle layui-bg-green" data-title="已收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-black" data-title="部分收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="cancel_typeTpl">
	{{# if(d.cancel_type == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="客户取消">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.cancel_type == 2) {}}
	<div class="layui-anim circle layui-bg-orange" data-title="管理员取消">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else{ }}
	{{# }}}
</script>
<script type="text/html" id="ghs_payTpl">
	{{# if(d.ghs_pay == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="全部支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.ghs_pay == 2){ }}
	<div class="layui-anim circle layui-bg-black" data-title="质保金支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.ghs_pay == 3){ }}
	<div class="layui-anim circle layui-bg-cyan" data-title="部分支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.ghs_pay == 4){ }}
	<div class="layui-anim circle layui-bg-red" data-title="未支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未支付">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="shoukuan_payTpl">
	{{# if(d.shoukuan_pay == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="全部收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shoukuan_pay == 2){ }}
	<div class="layui-anim circle layui-bg-black" data-title="质保金收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shoukuan_pay == 3){ }}
	<div class="layui-anim circle layui-bg-cyan" data-title="部分收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.shoukuan_pay == 4){ }}
	<div class="layui-anim circle layui-bg-red" data-title="未收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-orange" data-title="申请收款">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="caigou_invoice_dutyTpl">
	{{# if(d.caigou_invoice_duty){}}
	<div class="layui-anim circle layui-bg-green" data-title="已开票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未开票">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="caigou_hetongTpl">
{{# if(d.caigou_hetong){}}
	<div class="layui-anim circle layui-bg-green" data-title="已上传">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未上传">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="gys_fh_stateTpl">
	{{# if(d.gys_fh_state == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="已发货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未发货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="gys_sh_stateTpl">
	{{# if(d.gys_sh_state == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="已收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="未收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>

<script type="text/html" id="order_typeTpl">
    {{# if(d.order_type == 1){}}
    	自然订单
    	{{# } else if(d.order_type == 2){ }}
    		报备单
    		{{# } else if(d.order_type == 3){ }}
    			其他订单
    			{{# } else if(d.order_type == 4){ }}
    				改库房
    				{{# } else if(d.order_type == 5){ }}
    					退货
    					{{# } else if(d.order_type == 6){ }}
    						竞价单
    						{{# } else if(d.order_type == 7){ }}
    						废止订单
    						{{# }}}
    </script>
